package com.flyme.app.provider.controller;


import com.flyme.app.provider.feign.BaseSystemClient;
import com.flyme.common.core.configuration.GatewayProperties;
import com.flyme.common.core.http.OpenRestTemplate;
import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import feign.Headers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



/**
 * 登录接口
 */
@RestController
public class ApiController {
    @Autowired
    private OpenRestTemplate openRestTemplate;
    @Autowired
    private ResourceServerProperties resourceServerProperties;
    @Autowired
    private GatewayProperties gatewayProperties;
    @Autowired
    private BaseSystemClient systemClient;


    /**
     * test
     */
    @PostMapping(value = "/test")
    @Headers("Content-Type: application/json")
    public ResultBody test(@RequestBody PagerInfo pagerInfo) {
        Long userId = 521677655146233856L;
        return ResultBody.success(null);
    }


}
